package com.appkubes.mall.restful.application.goods.goods.service.impl;

import com.appkubes.mall.restful.application.goods.goods.dao.GoodsIndexDao;
import com.appkubes.mall.restful.application.goods.goods.entity.model.GoodsIndexResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsIndexService {

    @Autowired
    GoodsIndexDao goodsIndexDao;

    public List<GoodsIndexResult> querySelective(String queryStr, String appKey, Integer page, Integer size) {
        return goodsIndexDao.getList(queryStr,appKey,(page-1)*size,size);
    }

}
